from django.http import JsonResponse
from rest_framework.generics import CreateAPIView
from rest_framework.views import APIView

from .serializers import UserCreaterSerializers


class RegisterView(CreateAPIView):
    """注册用户"""
    # 指定用哪个序列化器
    serializer_class = UserCreaterSerializers
